﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.OutputDto._0806
{
    /// <summary>
    ///  获取作品体验记录明细
    /// </summary>
    public class OutputVRRecord: VRRecordMainResult
    {
        /// <summary>
        ///  缩略图
        /// </summary>
        public List<T_DocBagFileRecord> photoOption { get; set; }
        /// <summary>
        ///  正确率
        /// </summary>
        public decimal record_rate { get; set; }
        /// <summary>
        ///  体验记录列表
        /// </summary>
        public List<VRRecord> trial_list { get; set; }
    }
    /// <summary>
    ///  体验记录列表
    /// </summary>
    public class VRRecord: VRRecordResult
    {
        /// <summary>
        ///  成绩列表
        /// </summary>
        public List<VRRecordScore> score_list { get; set; }
    }
    /// <summary>
    ///  成绩列表
    /// </summary>
    public class VRRecordScore: VRRecordScoreResult
    {
        /// <summary>
        ///  答题列表
        /// </summary>
        public List<VRRecordAnswerResult> answer_list { get; set; }
    }


    /// <summary>
    ///  主表
    /// </summary>
    public class VRRecordMainResult
    {
        /// <summary>
        ///  所属目录ID
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  所属目录名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  作品ID
        /// </summary>
        public int file_id { get; set; }
        /// <summary>
        /// 作品名称
        /// </summary>
        public string file_name { get; set; }
        /// <summary>
        /// 作品简介
        /// </summary>
        public string file_note { get; set; }
        /// <summary>
        ///  体验次数合计
        /// </summary>
        public int trial_num { get; set; }
        /// <summary>
        ///  体验时长合计
        /// </summary>
        public int em_time { get; set; }
        /// <summary>
        ///  总得分
        /// </summary>
        public decimal total_score { get; set; }
        /// <summary>
        ///  正确数
        /// </summary>
        public int result_ok { get; set; }
        /// <summary>
        ///  错误数
        /// </summary>
        public int result_error { get; set; }
    }
    /// <summary>
    ///  体验记录列表
    /// </summary>
    public class VRRecordResult
    {
        /// <summary>
        ///  体验记录ID
        /// </summary>
        public int er_id { get; set; }
        /// <summary>
        ///  体验开始时间
        /// </summary>
        public string in_date { get; set; }
        /// <summary>
        ///  体验结束时间
        /// </summary>
        public string out_date { get; set; }
        /// <summary>
        ///  体验时长
        /// </summary>
        public int em_time { get; set; }
        
        public VRRecord ToVRRecord()
        {
            return new VRRecord 
            {
                er_id=this.er_id,
                in_date=this.in_date,
                out_date=this.out_date,
                em_time=this.em_time
            };
        }
    }
    /// <summary>
    ///  成绩列表
    /// </summary>
    public class VRRecordScoreResult
    {
        /// <summary>
        ///  关卡代码
        /// </summary>
        public string folder_code { get; set; }
        /// <summary>
        ///  关卡名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  答题序号
        /// </summary>
        public string topic_num { get; set; }
        /// <summary>
        ///  得分
        /// </summary>
        public decimal score { get; set; }
        public VRRecordScore ToVRRecordScore()
        {
            return new VRRecordScore
            {
                folder_code = this.folder_code,
                folder_name = this.folder_name,
                topic_num = this.topic_num,
                score = this.score
            };
        }
    }
    /// <summary>
    ///  答题列表
    /// </summary>
    public class VRRecordAnswerResult
    {
        /// <summary>
        ///  题号
        /// </summary>
        public int num { get; set; }
        /// <summary>
        ///  状态
        ///  1=答对；0=答错
        /// </summary>
        public int status { get; set; }
        /// <summary>
        ///  得分
        /// </summary>
        public decimal score { get; set; }
        /// <summary>
        ///  题目内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        ///  正确答案
        /// </summary>
        public string answer { get; set; }
        /// <summary>
        ///  选择答案
        /// </summary>
        public string sel_result { get; set; }
    }
}